package com.Brave.manager.Demo06;

import java.io.IOException;
import java.net.*;
import java.util.Scanner;

public class Send {
    public static void main(String[] args) throws IOException {
        Scanner S = new Scanner(System.in);
        DatagramSocket ds = new DatagramSocket();

        while (true){
            String s = S.nextLine();

            if("886".equals(s)){
                break;
            }

            byte[] bys= s.getBytes();

            DatagramPacket dp = new DatagramPacket(bys,bys.length, InetAddress.getByName("192.168.31.69"),10088);

            ds.send(dp);
        }

        ds.close();


    }
}
